<extend name="Base/common"/>


<block name="body">
    <div class="system-message">
        <h5>出错啦!</h5>
        <p class="error"><?php echo($error); ?></p>
        <p class="detail"></p>
        <p class="jump">
        <b id="wait"><?php echo($waitSecond); ?></b> 秒后页面将自动跳转
        </p>
        <div>
            <a id="href" id="btn-now" href="<?php echo($jumpUrl); ?>">立即跳转</a>
        </div>
    </div>
</block>


<block name="script">
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        window.stop = function (){
                console.log(111);
                clearInterval(interval);
        }
    })();
</script>
</block>